<script setup lang="ts">
  import { RouterView, useRouter } from 'vue-router';
  const router = useRouter();
  // 监听当前路由
  watch(
    () => router.currentRoute.value,
    (newValue: any) => {
      document.title = newValue.name;
    },
  );
</script>

<template>
  <RouterView />
</template>

<style scoped></style>
